Class LcpFrameImpl

All Implemented Interfaces:
IPCData, LcpFrame, Pdu, Signal

public class LcpFrameImpl extends PduImpl implements LcpFrame
  • Field Details

    • address

      protected int address
    • control

      protected int control
    • protocolId

      protected Short protocolId
    • code

      protected int code
    • id

      protected int id
    • isPppFrame

      protected boolean isPppFrame
    • HAPAuthenType

      protected PPPAuthenType HAPAuthenType
    • routeIp

      protected IPAddress routeIp
  • Constructor Details

    • LcpFrameImpl

      public LcpFrameImpl()
  • Method Details

    • getAddress

      public int getAddress()
      Specified by:
      getAddress in interface LcpFrame
      Returns:
      int Returns a int
    • setAddress

      public void setAddress(int address)
      Specified by:
      setAddress in interface LcpFrame
      Parameters:
      address - Takes in a parameter of address
    • getControl

      public int getControl()
      Specified by:
      getControl in interface LcpFrame
      Returns:
      int Returns a int
    • setControl

      public void setControl(int control)
      Specified by:
      setControl in interface LcpFrame
      Parameters:
      control - Takes in a parameter of control
    • getProtocolId

      public Short getProtocolId()
      Specified by:
      getProtocolId in interface LcpFrame
      Returns:
      Short Returns a Short
    • setProtocolId

      public void setProtocolId(Short protocolId)
      Specified by:
      setProtocolId in interface LcpFrame
      Parameters:
      protocolId - Takes in a parameter of protocolId
    • getCode

      public int getCode()
      Specified by:
      getCode in interface LcpFrame
      Returns:
      int Returns a int
    • setCode

      public void setCode(int code)
      Specified by:
      setCode in interface LcpFrame
      Parameters:
      code - Takes in a parameter of code
    • getId

      public int getId()
      Specified by:
      getId in interface LcpFrame
      Returns:
      int Returns a int
    • setId

      public void setId(int id)
      Specified by:
      setId in interface LcpFrame
      Parameters:
      id - Takes in a parameter of id
    • getIsPppFrame

      public boolean getIsPppFrame()
      Specified by:
      getIsPppFrame in interface LcpFrame
      Returns:
      boolean Returns a boolean
    • setIsPppFrame

      public void setIsPppFrame(boolean isPppFrame)
      Specified by:
      setIsPppFrame in interface LcpFrame
      Parameters:
      isPppFrame - Takes in a parameter of isPppFrame
    • getHAPAuthenType

      public PPPAuthenType getHAPAuthenType()
      Specified by:
      getHAPAuthenType in interface LcpFrame
      Returns:
      PPPAuthenType Returns a PPPAuthenType
    • setHAPAuthenType

      public void setHAPAuthenType(PPPAuthenType HAPAuthenType)
      Specified by:
      setHAPAuthenType in interface LcpFrame
      Parameters:
      HAPAuthenType - Takes in a parameter of HAPAuthenType
    • getRouteIp

      public IPAddress getRouteIp()
      Specified by:
      getRouteIp in interface LcpFrame
      Returns:
      IPAddress Returns a IPAddress
    • setRouteIp

      public void setRouteIp(IPAddress routeIp)
      Specified by:
      setRouteIp in interface LcpFrame
      Parameters:
      routeIp - Takes in a parameter of routeIp
    • getFieldType

      public PtmpTypeValue getFieldType(String fieldName)
      Overrides:
      getFieldType in class PduImpl
    • read

      public void read(EncodedBuffer buffer)
      Reads this object from an EncodedBuffer of raw data
      Specified by:
      read in interface IPCData
      Overrides:
      read in class PduImpl
      Parameters:
      buffer - The EncodedBuffer that contains the raw data from which to construct this object
    • pduRead

      public void pduRead(EncodedBuffer buffer)
      Specified by:
      pduRead in interface Signal
      Overrides:
      pduRead in class PduImpl
    • getOrderedFieldNames

      public List<String> getOrderedFieldNames()
      Specified by:
      getOrderedFieldNames in interface Signal
      Overrides:
      getOrderedFieldNames in class PduImpl
    • encodeTypeAndPayload

      public void encodeTypeAndPayload(EncodedBuffer buffer)
      Specified by:
      encodeTypeAndPayload in interface Signal
      Overrides:
      encodeTypeAndPayload in class PduImpl